package com.tougutips.listener;

import com.tougutips.common.core.constant.MqConstants;
import com.tougutips.entity.SeckillGoods;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SeckillNoticeSubscribe {
    @RabbitListener(queues = MqConstants.NOTICE_QUEUE,ackMode = "AUTO")
    public void subscribeMethod(SeckillGoods seckillGoods){
        log.info("秒杀通知接收到消息："+seckillGoods);
        // 开始往用户端推送秒杀活动信息
    }
}
